LIBS = -lomniORB4 -lomnithread -lpthread -lOpenNI
#INCLUDEPATH = -I/usr/include
EXEC = Client
OUPUTDIR = ../
INCLUDE_PATH =	-I/usr/include/ni
OBJECTS= KiBeamSK.o CorbaSender.o Client.o 

all: $(OBJECTS)
	$(CXX) $(LIBS) -o $(OUPUTDIR)$(EXEC) $(OBJECTS)

%SK.o:%SK.cc
	$(CXX) $(INCLUDE_PATH) -o $@ -c $<

%.o:%.cpp
	$(CXX) $(INCLUDE_PATH) -o $@ -c $<
	
%SK.cc:%.idl
	omniidl -bcxx $<

clean:
	rm *.o *SK.cc *.hh $(OUPUTDIR)$(EXEC)